package graphics.effects;
import graphics.effects.particles.PSysSetting;
import graphics.effects.particles.Particlesystem;
public class PartSys {
	public static Particlesystem fire;
	public static Particlesystem sparks;
	public static Particlesystem rain;
	public static Particlesystem smoke;
	public static void init() {
		PSysSetting.init();
		fire = new Particlesystem(PSysSetting.fire, 2000, 0.04f);
		sparks = new Particlesystem(PSysSetting.spark, 2000, 0.07f);
		rain = new Particlesystem(PSysSetting.rain, 10000, 0.1f);
		smoke = new Particlesystem(PSysSetting.smoke, 2000, 0.07f);
	}
	public static void handle() {
		fire.handle();
		sparks.handle();
		rain.handle();
		smoke.handle();
	}
	public static void drawAdditive() {
		sparks.draw();
		fire.draw();
	}
	public static void draw() {
		rain.draw();
		smoke.draw();
	}
}
